﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using WarehouseManagement.BusinessLogic.BC;
using WarehouseManagement.ViewModels.Stock;

namespace WarehouseManagement.Presenters.Stock
{
    public class ViewStockByQtyAndValuePresenter:BasePresenter<IViewStockByQuantityAndValueViewModel>
    {
        private StockBC _stockBC;

        public ViewStockByQtyAndValuePresenter() {
            _stockBC = new StockBC();
        }
        protected override void WireupEventHandles()
        {
            
        }

        public void LoadStockList()
        {
            var list = _stockBC.GetViewStockInfo(Model.FromDate.Date, Model.ToDate.Date).ToList();
            Model.StockList = list;
        }
    }
}
